Properly annotate GtkLayoutManagerClass.create_layout_child()
authorEmmanuele Bassi <ebassi@gnome.org>
Sat, 12 Sep 2020 13:31:52 +0000 (14:31 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Sat, 12 Sep 2020 13:33:24 +0000 (14:33 +0100)
We're missing the ownership transfer rule for the created GtkLayoutChild
instance; this makes the virtual function not introspectable.

Fixes: #3156
gtk/gtklayoutmanager.h

index 3066dc5660ba8d71ae07c8a56fdcb52d1f7a741f..314d4a0625d6cbb0fdc2914e1e4a7169a1e8a453 100644 (file)
@@ -77,6 +77,16 @@ struct _GtkLayoutManagerClass
 
   GType              layout_child_type;
 
+  /**
+   * GtkLayoutManagerClass::create_layout_child:
+   * @manager: the #GtkLayoutManager
+   * @widget: the widget using the @manager
+   * @for_child: the child of @widget
+   *
+   * Create a #GtkLayoutChild instance for the given @for_child widget.
+   *
+   * Returns: (transfer full): a #GtkLayoutChild
+   */
   GtkLayoutChild *   (* create_layout_child) (GtkLayoutManager *manager,
                                               GtkWidget        *widget,
                                               GtkWidget        *for_child);